package Review;

public class Text {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.display();
        System.out.println();

        myArrayList.remove(5);
        myArrayList.clear();
        myArrayList.display();
        /*try {
            myArrayList.add(1,99);
        } catch (IndexOutOfException e) {
            e.printStackTrace();
        }
        myArrayList.display();
        System.out.println();
        System.out.println("===================");
        try {
            System.out.println(myArrayList.getPos(1));
        } catch (IndexOutOfException e) {
            e.printStackTrace();
        }*/
    }
}
